package spider;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * Created by donar on 17/7/5.
 */
public class SeleniumDemo {
    public static void main(String[] args) throws InterruptedException {
        System.setProperty("webdriver.chrome.driver","/Users/donar/chromedriver");
        long start = System.currentTimeMillis();
        WebDriver driver = new ChromeDriver();
        driver.get("https://detail.1688.com/offer/539949101698.html?spm=a26e3.8027625.1999173159.2.f3pDwZ");
        System.out.println(driver.getPageSource());
        System.out.println(System.currentTimeMillis()-start);
        //driver.close();
        //driver.quit();
    }
}
